package com.database.service;

import com.database.character.Attention;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AttentionService {

  //添加关注
  int addAttention(Attention attention);

  //取消关注
  int deleteByAttentionId(Integer AttentionId);

  //根据userId查询关注
  List<Attention> getAttentionByUid(Integer userId);

  //根据userId和focusedId查询关注
  Attention getByUidAndFid(Integer userId, Integer focusedId);

  int deleteByUidAndFid(Integer userId, Integer focusedId);
}
